if __name__ == "__main__":

    from trace import TraceConnection, TRACE_SETTINGS
    from datetime import datetime, timedelta

    trace_conn = TraceConnection(TRACE_SETTINGS)

    start_time = datetime(2024, 5, 19, 0, 0, 0)
    end_time = datetime(2024, 5, 19, 8, 0, 0)

    data = trace_conn.trace_extract(start_time, end_time)
    data.to_csv("./log.csv", index=False)
